/**
 * 画图  颜色配置
 *
 * @author yangjinlai 20200217
 * zhaoying 20200827 从人事管理h5迁移至理顾宝-资产配置
 */


export default{

	//柱状图颜色
	barColor: {

		//黄色渐变
		type_1: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
					offset: 0,
					color: '#fe9c31'
				},{
					offset: 0.43,
					color: '#febc3c'
				},{
					offset: 1,
					color: '#ffe34a'
				}])],
		//黄色渐变，紫色渐变
		type_2: [new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
					offset: 0,
					color: '#fe9c31'
				},{
					offset: 0.43,
					color: '#febc3c'
				},{
					offset: 1,
					color: '#ffe34a'
				}]),
				new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
					offset: 0,
					color: '#8C3FFF'
				},{
					offset: 1,
					color: '#CF77FD'
				}])
			],
		//黄，粉，红，紫渐变
		type_3: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#FE9B30'
			},{
				offset: 1,
				color: '#FFE64B'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#F829E2'
			},{
				offset: 1,
				color: '#FC68FE'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#F82955'
			},{
				offset: 1,
				color: '#FE686B'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#8230FE'
			},{
				offset: 1,
				color: '#D34BFF'
			}])
		],
		//
		type_4: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#fe9c31'
			},{
				offset: 0.43,
				color: '#febc3c'
			},{
				offset: 1,
				color: '#ffe34a'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#F82955'
			},{
				offset: 1,
				color: '#FE686B'
			}])
		],
		type_5:['#12DC7A','#09C79C','#0AA47A','#21A7E5','#636FFF','#8D77F9','#FE52BB','#FE2956','#E3123E','#F27032','#F5CB3B','#F4E000'],
		//黄，红，紫渐变
		type_6: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#FE9B30'
			},{
				offset: 1,
				color: '#FFE64B'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#F82955'
			},{
				offset: 1,
				color: '#FE686B'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#8230FE'
			},{
				offset: 1,
				color: '#D34BFF'
			}])
		],
		type_7: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#fe9c31'
			},{
				offset: 0.43,
				color: '#febc3c'
			},{
				offset: 1,
				color: '#ffe34a'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#8C3FFF'
			},{
				offset: 1,
				color: '#CF77FD'
			}])
		],
		type_8: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#fe9c31'
			},{
				offset: 0.43,
				color: '#febc3c'
			},{
				offset: 1,
				color: '#ffe34a'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#569D74'
			},{
				offset: 1,
				color: '#6FB98F'
			}])
		],
		type_9: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#4302FF'
			},{
				offset: 1,
				color: '#C650FD'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#E53FFE'
			},{
				offset: 1,
				color: '#FF91F1'
			}])
		],
		type_10: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#8230FE'
			},{
				offset: 1,
				color: '#D34BFF'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#12FFF7'
			},{
				offset: 1,
				color: '#B3FFAB'
			}])
		],
		type_11:['#12dc7a','#0aa47a','#21a7e5','#636fff','#fe52bb','#e3123e','#f5cb3b',],

		//黄色渐变，红色渐变
		type_12: [
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#FE9B30'
			},{
				offset: 1,
				color: '#FFE64B'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#F82955'
			},{
				offset: 1,
				color: '#FE686B'
			}])
		],
		type_13: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#12FFF7'
		},{
			offset: 1,
			color: '#B3FFAB'
		}]),
			new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
				offset: 0,
				color: '#8C3FFF'
			},{
				offset: 1,
				color: '#CF77FD'
			}])
		],
		// 各等级客户数据变动趋势图表颜色
		type_14:['#00DF8F','#00B5E8','#9D8EF8','#FF8748','#FFDC2D'],
		type_15:['#12dc7a','#0aa47a','#21a7e5','#636fff','#fe52bb','#e3123e','#f5cb3b'],
	},

	//柱状图+折线图颜色，按数组中的顺序，和series中数据的顺序对应
	barLineColor: {
		type_1: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#fe9c31'
			},{
				offset: 0.43,
				color: '#febc3c'
			},{
				offset: 1,
				color: '#ffe34a'
			}]),
			'#F65C04', '#A973E6'],
		type_2: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#8230FE'
			},{
				offset: 1,
				color: '#D34BFF'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#FE9B30'
			},{
				offset: 1,
				color: '#FFE64B'
			}]), '#721CED'],
		type_3: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#8230FE'
			},{
				offset: 1,
				color: '#D34BFF'
			}]),'#5064FE', '#73E6DA'],
		type_4: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#8230FE'
			},{
				offset: 1,
				color: '#D34BFF'
			}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#E53FFE'
			},{
				offset: 1,
				color: '#FF91F1'
			}]), '#0AA47A', '#FE9B30'],
			// 黄,紫渐变 红色折线固定
		type_5: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#FE9B30'
		},{
			offset: 1,
			color: '#FFE64B'
		}]),
		new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#8230FE'
		},{
			offset: 1,
			color: '#D34BFF'
		}]), '#F65C04'],
		// 紫,粉渐变 绿色折线固定
		type_6: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#8230FE'
		},{
			offset: 1,
			color: '#D34BFF'
		}]),
		new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#E53FFE'
		},{
			offset: 1,
			color: '#FF91F1'
		}]), '#2BA467'],
		type_7: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#FE9B30'
		},{
			offset: 1,
			color: '#FFE64B'
		}]),
			new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#8230FE'
			},{
				offset: 1,
				color: '#D34BFF'
			}]) , '#2BA467','#F65C04'],
		type_8: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#FE9B30'
		},{
			offset: 1,
			color: '#FFE64B'
		}]),'#A973E6', '#F65C04'],
		type_9: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#8C3FFF'
		},{
			offset: 1,
			color: '#CF77FD'
		}]),'#ff7200', '#73E6DA'],
		type_10: ['#392469','#8B70CF', '#CEA0F0','#ffad1e','#F27032'],
		// 紫色、黄色、蓝色
		type_11: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#8230FE'
		},{
			offset: 1,
			color: '#D34BFF'
		}]),
		new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#FE9B30'
			},{
				offset: 1,
				color: '#FFE64B'
		}]),
		'#21A7E5', '#F27032'],
		// 蓝色 紫色、棕色
		type_12: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#29A8F8'
		},{
			offset: 1,
			color: '#97C2FC'
		}]),
		new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#85fba6'
		},{
			offset: 1,
			color: '#88fdd2'
		}]),
		new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
			offset: 0,
			color: '#D34BFF'
		},{
			offset: 1,
			color: '#8230FE'
		}]), '#F65C04'],
		type_13: ['#12DC7A','#8D77F9', '#F27032','#FBD502','#21A7E5'],
	},

	//饼图颜色
	pieColor: {
		type_1: [new echarts.graphic.LinearGradient(1, 0, 0, 0, [{ //颜色渐变函数 前四个参数分别表示四个位置依次为左、下、右、上
				offset: 0,
				color: '#FE9B30'
			}, {
				offset: 1,
				color: '#FFE64B'
			}]),new echarts.graphic.LinearGradient(1, 0, 0, 0, [{ //颜色渐变函数 前四个参数分别表示四个位置依次为左、下、右、上
				offset: 0,
				color: '#8C3FFF'
			}, {
				offset: 1,
				color: '#CF77FD'
			}])],
		type_2: [new echarts.graphic.LinearGradient(1, 0, 0, 0, [{ //颜色渐变函数 前四个参数分别表示四个位置依次为左、下、右、上
				offset: 0,
				color: '#FE9B30'
			}, {
				offset: 1,
				color: '#FFE64B'
			}]),new echarts.graphic.LinearGradient(1, 0, 0, 0, [{ //颜色渐变函数 前四个参数分别表示四个位置依次为左、下、右、上
				offset: 0,
				color: '#8C3FFF'
			}, {
				offset: 1,
				color: '#CF77FD'

			}]),'#F0F3F9'],
		type_3:['#ccc','#000','red','#21A7E5','#636FFF','#8D77F9','#FE52BB','#FE2956','#E3123E','#F27032','#F5CB3B','#F4E000'],
		type_4: ['#ccc','#000','yellow','#21A7E5','#636FFF','#8D77F9','#FE52BB','#FE2956','#E3123E','#F27032','#F5CB3B','#F4E000'],
		type_5: ['#12DC7A','#09C79C','#0AA47A','#21A7E5','#636FFF','#8D77F9','#FE52BB','#FE2956','#E3123E','#F27032','#F5CB3B','#F4E000'],
		type_6: ['#11C86F','#09B38C','#09936B','#1D98CE','#5966EA','#806CE5','#E24BA5','#DF284D','#CB0E3A','#D9672E','#E0B92D','#E4DA01'],
		type_7: ['#12DD7B','#0BC69E','#21A7E3','#626FFF','#8E77FA','#F07234','#FBD405'],
		type_8: ['#10C76C','#09B38C','#1D97D0','#5964E7','#806CE4','#D9652A','#E3BF03'],
		type_9: [new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
			offset: 0,
			color: '#F82955'
		}, {
			offset: 1,
			color: '#FE686B'
		}]),new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
			offset: 0,
			color: '#F829E2'
		}, {
			offset: 1,
			color: '#FC68FE'

		}])],
		type_10: [new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
			offset: 0,
			color: '#8C3FFF'
		}, {
			offset: 1,
			color: '#CF77FD'
		}]),new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
			offset: 0,
			color: '#FE9B30'
		}, {
			offset: 1,
			color: '#FFE64B'

		}])],
		type_11: ['#B3388B','#EF4431','#5F2783'],
		type_12: ['#09B38C','#09936B','#1D98CE','#5966EA','#806CE5','#E24BA5','#DF284D','#CB0E3A','#D9672E',,'#E4DA01'],
		//黄,紫,粉渐变
		type_13: [new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
			offset: 0,
			color: '#FFE64B'
		}, {
			offset: 1,
			color: '#FE9B30'
		}]),new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
			offset: 0,
			color: '#CF77FD'
		}, {
			offset: 1,
			color: '#8C3FFF'

		}]),new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
			offset: 0,
			color: '#FF91F1'
		}, {
			offset: 1,
			color: '#E53FFE'

		}])],
	},

	//grid区域底部的线条颜色
	gridColor: {
		type_1: [new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
				offset: 0,
				color: '#fff'
			},{
				offset: 0.4,
				color: '#E5E2E6'
			},{
				offset: 0.6,
				color: '#E5E2E6'
			},{
				offset: 1,
				color: '#fff'
			}])]
	}
}
